<?php

namespace App\Domain\Movie;
use App\Model\Movie\MovieDetail as MovieDetailModel;

/**
 * 用户
 *
 * - 可用于自动生成一个新用户
 *
 * @author dogstar 20200331
 */

class MovieDetail {

    public function getList($id) {

        $model = new MovieDetailModel();

        return $model->getList($id);
    }

    public function getMovieDetailInfo($id) {
        $domain = new MovieDetailModel();
        $res = $domain->getMovieDetailInfo($id);
        return $res;
    }

    public function update($id, $newData) {
        $model = new MovieDetailModel();
        if($id != 0) {
            return $model->update($id, $newData);
        }else{
            return $model->insert($newData);
        }
    }
    public function delete($id){
        $model = new MovieDetailModel();
        return $model->delete($id);
    }

}